<!-- $Id: apk_version_info.htm 14361 2008-04-07 09:26:17Z zhuwenyuan $ -->
{include file="pageheader.htm"}
<script type="text/javascript" src="../js/calendar.php?lang={$cfg_lang}"></script>
<style>
.span_info{  padding-left: 10px; cursor:pointer;}
 .span_info a{    color: #666;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    padding: 2px 5px 2px 5px;
    border: 1px solid #278296;
    border-right: 2px solid #278296;
    border-bottom: 2px solid #278296;
    background: #DDEEF2 url(../images/icon_add.gif) no-repeat 3px center;
}}
</style>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
{insert_scripts files="validator.js,../js/transport.js}
<div class="main-div">
<form method="post" action="apk_version.php" name="theForm" enctype="multipart/form-data" onSubmit="return validate()">
<table cellspacing="1" cellpadding="3" width="100%">
   <tr>
    <td class="label">{$lang.version}：</td>
    <td>  <input name="version" type="text" id="version" value="{$apk_version.version}" >
    </td>
  </tr>
   <tr>
    <td class="label">{$lang.apk_version_name}：</td>
    <td>  <input name="apk_version_name" type="text" id="apk_version_name" value="{$apk_version.apk_version_name}" >
    </td>
  </tr>
    <tr>
    <td class="label">{$lang.apk_version_url}：</td>
    <td>  <input name="apk_version_url" type="file" id="apk_version_url" value="">
    <input name="old_apk_version_url" type="hidden" id="old_apk_version_url" value="{$apk_version.apk_version_url}">
    
         {if $apk_version.apk_version_url}<a href="{$apk_version.avn_url}" target="_blank"><img src="images/yes.gif" border="0"></a>{/if}
    </td>
  </tr>

  
  <tr>
    <td colspan="2" align="center">
      <input type="submit" class="button" value="{$lang.button_submit}" />
      <input type="reset" class="button" value="{$lang.button_reset}" />
      <input type="hidden" name="act" value="{$form_action}" />
      <input type="hidden" name="id" value="{$apk_version.apk_version_id}" />    </td>
  </tr>
</table>
</form>
</div>

{literal}
<script language="JavaScript">
<!--
onload = function()
{
    // 开始检查订单
    startCheckOrder();
//    changeRange(document.forms['theForm'].elements['act_range'].value);
//    changeType(document.forms['theForm'].elements['act_type'].value);
}
/**
 * 检查表单输入的数据
 */
function validate()
{
	var version=document.forms['theForm'].elements['version'].value;
	var apk_version_name=document.forms['theForm'].elements['apk_version_name'].value;
	var apk_version_url=document.forms['theForm'].elements['apk_version_url'].value;
	var id=document.forms['theForm'].elements['id'].value;
	
	
	if(!version)
	{
		alert('版本不能为空');
		return false;
	}
		if(!apk_version_name)
	{
		alert('名称不能为空');
		return false;
	}
		if(!apk_version_url&&!id)
	{
		alert('下载地址不能为空');
		return false;
	}
}



</script>
{/literal}
{include file="pagefooter.htm"}
